﻿
using HBase;
using System;

namespace hCommand {
    public class CoreWhLoc : AbsCoreWhPos {
        
        public byte ShelfId {
            get; set;
        }
        
        public byte RowNo {
            get; set;
        }
        public byte ColNo {
            get; set;
        }
        /// <summary>
        ///   类型id 1 X不变，Z不变 单深  2 X不变双深  Z多变 双深或多深，考虑深浅货位取放货关系 0 过道
        /// </summary>
        public byte type {
            get; set;
        }
        public int orderNo {
            get; set;
        }
        public byte ActiveStatus {
            get; set;
        }

        /// <summary>
        /// 浅货位 为1，依次远离货叉位，type 为2或者4 有效
        /// </summary>
        public byte deepIndex {
            get; set;
        }
     
        
        public byte moveGroup {
            get; set;
        }
        /// <summary>
        /// 货物是否不同
        /// </summary>
        public long goodsDiff {
            get; set;
        }
   
        public int scr { get; set; }
        public int x { get; set; }
        public int y { get; set; }
        public int z { get; set; }
        public int workingCount() {
            return countOut + countIn;
        }

        private static String name = typeof(CoreWhLoc).Name;
        public static CoreWhLoc getCoreWhLoc(int id) {
            return MyCache.getValue<CoreWhLoc>(name, id);
        }
    }
}
